# -*- encoding: utf-8 -*-
"""
@Author: cuiyonghua
@CreateDate: 2020/10/19 3:05 下午
@Description:
"""
import turtle

t = turtle.Pen()
turtle.bgcolor("black")
sides = 6
colors = ['red', 'yellow', 'green', 'blue', 'orange', 'purple']

# 炫酷六边形
for x in range(360):
    t.pencolor(colors[x%sides])
    t.forward(x*3/sides+x)
    t.left(360/sides+1)
    t.width(x*sides/180)
    t.left(91)

# 一. 漂亮的螺旋线
# for x in range(260):
#     t.pencolor(colors[x % sides])
#     t.forward(x * 3 / sides + x)
#     t.left(360 / sides + 1)
#     t.width(x * sides / 200)


